package com.vcaresolution.logistic.form;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

import com.vcaresolution.logistic.pojo.Voyage;

/**
 * <code>VoyageForm</code> represents Voyage management related fields.
 *
 * @author Snehal Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */
@Component
public class VoyageForm extends Voyage{

	private static final long serialVersionUID = 1L;

	private Integer sectorid;
	private Integer portid;
	private Integer vesselid;
	
	/**
	 * @return the portid
	 */
	public Integer getPortid() {
		return portid;
	}

	/**
	 * @param portid the portid to set
	 */
	public void setPortid(Integer portid) {
		this.portid = portid;
	}

	/**
	 * @return the vesselid
	 */
	public Integer getVesselid() {
		return vesselid;
	}

	/**
	 * @param vesselid the vesselid to set
	 */
	public void setVesselid(Integer vesselid) {
		this.vesselid = vesselid;
	}

	/**
	 * @return the sectorid
	 */
	public Integer getSectorid() {
		return sectorid;
	}

	/**
	 * @param sectorid the sectorid to set
	 */
	public void setSectorid(Integer sectorid) {
		this.sectorid = sectorid;
	}

	@Override
	@NotEmpty
	public String getVoyagename() {
		return super.getVoyagename();
	}
	
	@Override
	@NotNull
	public Date getEta() {
		return super.getEta();
	}
	
	@Override
	@NotNull
	public Date getEtd() {
		return super.getEtd();
	}
	
	@Override
	@NotNull
	public Date getAcdsicutoff() {
		return super.getAcdsicutoff();
	}
	
	@Override
	@NotNull
	public Date getCutoff() {
		return super.getCutoff();
	}
	
	@Override
	@NotNull
	public Date getEnscutoff() {
		return super.getEnscutoff();
	}
}
